import { reqTradeList } from '@/api'
const actions = {
    async getTradeList({ commit }, { page, limit }) {
        let result = await reqTradeList(page, limit)
        if (result.code == 200) {
            // console.log(result.data);
            commit('GETTRADELIST', result.data)
        }
    }
}
const mutations = {
    GETTRADELIST(state, value) {
        state.tradeList = value
    }
}
const state = {
    tradeList: {}
}
export default {
    namespaced: true,
    actions,
    mutations,
    state
}